package com.qf.model.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qf.convert.DateConverter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Manager)实体类
 *
 * @author makejava
 * @since 2024-04-30 09:50:20
 */
@ColumnWidth(20)
public class Manager implements Serializable {
    private static final long serialVersionUID = -57618355779580690L;
    /**
     * 管理员id
     */
    @ExcelProperty("管理员id")
    private Long mgrId;
    /**
     * 管理员姓名
     */
    @ExcelProperty("管理员姓名")
    private String mgrName;
    /**
     * 账号
     */
    @ExcelProperty("账号")
    private String account;
    /**
     * 密码
     */
    @ExcelProperty("密码")
    private String password;
    /**
     * 角色
     */
    @ExcelProperty("角色")
    private String role;
    /**
     * 手机
     */
    @ExcelProperty("手机")
    private String phone;
    /**
     * 是否启用
     */
    @ExcelProperty("是否启用")
    private String status;
    /**
     * 添加时间
     */
    @ExcelProperty(value = "添加时间",converter = DateConverter.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT-8")
    private Date createTime;
    /**
     * 登陆ip
     */
    @ExcelProperty("登陆ip")
    private String loginIp;
    /**
     * 管理员图片
     */
    @ExcelProperty("管理员图片")
    private String avatar;


    public Long getMgrId() {
        return mgrId;
    }

    public void setMgrId(Long mgrId) {
        this.mgrId = mgrId;
    }

    public String getMgrName() {
        return mgrName;
    }

    public void setMgrName(String mgrName) {
        this.mgrName = mgrName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}

